/*! 
 * jquery.ux.spinner - v 1.0.0 - http://jquery-ux.com/
 * Copyright (c) 2010 Michael Helgeson, Three Dub Media
 * Open Source MIT License - http://jquery-ux.com/license 
 */
// Created: 2009-07-13
// Updated: 2010-01-08
// REQUIRES: jquery 1.3, jquery.ux

;(function( $ ){ // confine scope

$.ux( "spinner", {
	version: "1.0.0",
	expose: "", // + enable disable destroy
	defaults: {
		value: 50, // the value to be set
		detail: 1, // the numeric value to snap evenly
		min: 0, // the minimum value
		max: 100, // the maximum value
		// interactive behavior
		step: 5, // mousedown/keyclick animation steps
		delay: 40, // mousedown/keyclick animation interval
		// optional callback hooks...
		format: null, // optional value formatting (like $cash())
		unformat: null, // optional for cleaning up user entered values
		change: null, // whenever the value changes...
		// generated markup settings
		insert: "before", // string "after" or "before"
		classes: { // mark-up and state classnames
			wrap:     "ux-slider-wrap",
			active:   "ux-slider-active",
			disabled: "ux-slider-disabled",
			track:    "ux-slider-track", 
			handle:   "ux-slider-handle", 
			input:    "ux-slider-input"		
			}
		},
	create: function( elem, opts ){ 
		// store args, extend the instance
		$.extend( this, { input:elem, $input:$( elem ), opts:opts });
		// enforce <input/> node restrictions...
		if ( !this.$input.is(":input") ) return false; 
		
		},
	destroy: function(){
		
		},
	disable: function( disabled ){ 
		this.input.disabled = disabled;
		
		},
	methods: {
		
		}
	});

})( jQuery ); // secure the $ jQuery alias	